Carbon


MPExitCriticalRegion

Header: Multiprocessing.h Carbon status: Supported

Exits a critical region.

OSStatus MPExitCriticalRegion (
    MPCriticalRegionID criticalRegion
);
Parameter descriptions
criticalRegion

The ID of the critical region you want to exit.

function result

A result code. If the task does not own the critical region specified by criticalRegion, MPExitCriticalRegion returns kMPInsufficientResourcesErr.

DISCUSSION

This function decrements the use count of the critical region object. When the use count reaches zero, ownership of the critical region object is released (which allows another task to use the critical region).

Also see the function MPEnterCriticalRegion.

VERSION NOTES

Introduced with Multiprocessing Services 1.0.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)